package mua.core.operation.other;

import mua.core.interpreter.Global;
import mua.core.value.Bool;
import mua.core.value.FunctionBody;
import mua.core.value.MuaValue;

public class ErAll {
    public static MuaValue run(FunctionBody functionBody) {
        //清空全局变量
        if(functionBody==null){
            Global.globalVariable.clear();
        }
        //清空当前名字空间的变量
        else {
            functionBody.getLocalVariable().clear();
        }
        return new Bool("true");
    }
}
